import React, { Component } from 'react';
import { View,Text,Alert } from 'react-native'


class Index extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
  }
  handlePress(){
    Alert.alert(
        '111', //提示标题
        `确定删除该`, //提示内容
        [
            { text: '取消', onPress: () => console.log('点击取消') },
            {
              text: '确定', onPress:  () =>  console.log('点击确定')
            }
        ] //按钮集合
    )
  }
  render() { 
    return ( 
      <View>
        <Text onPress={this.handlePress}>未绑定this</Text>
      </View>
     );
  }
}
 
export default Index;
